<#import "/spring.ftl" as s/>
<@override name="main">
<form action="<@s.url '/account/save_chpwd'/>" id="chpwd_form" method="post">
	<table art="form" columns="120,*" autoLabel="true" rightAlign="true" colon="true">
		<tr>
			<td>
				<label for="oldpwd" art='label' required="true"><@s.message 'account.from.oldpwd'/></label>
			</td>
			<td>
				<input id="oldpwd" type="password" name="oldpwd" required="true" art="textbox"   validType="length[0,40]"
                       requiredMsg="<@s.message "account.password.old.change.required.tip"/>"
                       errorMsg="<@s.message "account.password.old.change.error.tip"/>"
					   emptyText="<@s.message 'account.from.oldpwd'/>" display="right" width="250"/>
			</td>
		</tr>
		<tr>
			<td>
				<label art='label' for="pw" required="true"><@s.message 'account.from.confirm.password'/></label>
			</td>
			<td>
				<input id="pw" type="password" name="password" validType="length[0,40]" required="true"
                       requiredMsg="<@s.message "account.password.new.change.required.tip"/>"
                       errorMsg="<@s.message "account.password.new.change.error.tip"/>"
					   emptyText="<@s.message 'account.from.confirm.password'/>" display="right" art="textbox" width="250"/>
			</td>
		</tr>
		<tr>
			<td>
				<label art='label' for="newPassword" required="true"><@s.message 'account.from.titip.confirm.pwd'/></label>
			</td>
			<td>
				<input type="password" id="newPassword" width="250" validType="length[0,40]" required="true"
                       requiredMsg="<@s.message "account.password.new.change.required.tip"/>"
                       errorMsg="<@s.message "account.password.new.change.error.tip"/>"
					   emptyText="<@s.message 'account.from.titip.confirm.pwd'/>" display="right" art="textbox"  />
			</td>
		</tr>
		<tr>
			<td>
			</td>
			<td>
				<button id="btn_submit" type="button" onclick="check_confirm.check_confirm()">
					<span><span><@s.message 'operation.edit.pwd'/> </span></span>
				</button>
			</td>
		</tr>
        <tr id='tr_form_msg' >
            <td colspan="2"></td>
       </tr>
	</table>
</form>
</@override>
<@override name="scripts">
<script type="text/javascript" src="<@s.url '/resources/scripts/account/password.js'/>"></script>
</@override>
<@extends name="/common/layout.ftl" current="settings" title="home.account.modifypwd"></@extends>